
<!-- Start of first page -->
<div data-role="page">

	<div data-role="header" data-theme="b">
		<h1>账户管理</h1>
		<a href="#" data-icon="back" onclick="history.go(-1);">返回</a>
		<?php echo CHtml::link("主页",array("site/index"),array("data-icon"=>"home"))?>
	</div>
	<!-- /header -->
	<div data-role="footer">
		<div data-role="navbar" data-theme="e" >
			<ul>	
				<li><?php echo CHtml::link("账户登录",array("site/login"),array("data-icon"=>"star","data-theme"=>"b"))?></li>			
				<li><?php echo CHtml::link("账户注册",array("site/register"),array("data-icon"=>"plus","data-theme"=>"e"))?></li>
				<li><?php echo CHtml::link("密码找回",array("site/findpass"),array("data-icon"=>"search","data-theme"=>"b"))?></li>
			</ul>
		</div><!-- /navbar -->
	</div><!-- /footer -->
	<div data-role="content">

		<div class="ui-body ui-body-e">
			<h3>注意</h3>
			<ul>
				<li>带<span style='color: #c00'> * </span>的是必填信息</li>
				<li> 用户名必须为字母或数字的组合 </li>
				<?php foreach($member->getErrors() as $errors){
					foreach ($errors as $error){
						echo "<li>$error</li>";
					}
				}?>
			</ul>
		</div>


		<?php echo CHtml::form('','post',array("data-ajax"=>"false","id"=>"namecardForm")); ?>
		<table style='width: 100%'>
			<tr>
				<td width="90px"><span class='labelspan'>用户名<span
						style='color: #c00'>*</span> </span>
				</td>
				<td>
					<div data-role="fieldcontain">
					<?php echo CHtml::activeTextField($member,"username");?>
					</div>
				</td>
			</tr>
			<tr>
				<td><span class='labelspan'>密码<span style='color: #c00'>*</span> </span>
				</td>
				<td>
					<div data-role="fieldcontain">
					<?php echo CHtml::activePasswordField($member,"pass");?>
					</div>
				</td>
			</tr>
			<tr>
				<td><span class='labelspan'>密码确定<span style='color: #c00'>*</span> </span>
				</td>
				<td>
					<div data-role="fieldcontain">
					<?php echo CHtml::activePasswordField($member,"pass_repeat");?>
					</div>
				</td>
			</tr>
			<tr>
				<td width="70px"><span class='labelspan'>邮箱<span style='color: #c00'>*</span>
				</span>
				</td>
				<td>
					<div data-role="fieldcontain">
					<?php echo CHtml::activeTextField($member,"email");?>
					</div>
				</td>
			</tr>
			<tr>
				<td><span class='labelspan'></span></td>
				<td>
					<div data-role="controlgroup" data-type="horizontal">
						<input type='submit' data-icon="check" value='注册' />
					</div>
				</td>
			</tr>
		</table>
		<?php echo CHtml::endForm(); ?>
	</div>
	<!-- /content -->

	<?php $this->renderPartial("//site/footer")?>
	<!-- /footer -->
</div>
<!-- /page -->
